from django.contrib import admin
from .models import Car, Location, Cargo


class Admin_Cars(admin.ModelAdmin):
    list_display = ('id', 'unique_car_number', 'current_location', 'payload_type')


class Admin_Location(admin.ModelAdmin):
    list_display = ('id', 'city', 'state',  'zipcode',  'latitude',  'longitude')


class Admin_Cargo(admin.ModelAdmin):
    list_display = ('id', 'pick_up_location', 'deliver_location', 'cargo_weight', 'description')


admin.site.register(Car, Admin_Cars)
admin.site.register(Location, Admin_Location)
admin.site.register(Cargo, Admin_Cargo)